//
//  IWTemp2Ctrl.m
//  WeiBo17
//
//  Created by teacher on 15/8/16.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "IWTemp2Ctrl.h"
#import "IWTemp3Ctrl.h"

@interface IWTemp2Ctrl ()

@end

@implementation IWTemp2Ctrl

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"第二个控制器";
    self.view.backgroundColor = [UIColor whiteColor];
    
    
//    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImageName:@"navigationbar_back_withtext" title:@"首页" target:self action:@selector(back)];
}


//- (void)back{
//    [self.navigationController popViewControllerAnimated:YES];
//}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
    IWTemp3Ctrl *ctrl = [IWTemp3Ctrl new];
    [self.navigationController pushViewController:ctrl animated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
